def get_value_from_text(text_content, key):
    """
    从文本内容中提取值
    :param key:
    :param text_content:
    :return:
    """
    value = None
    lines = text_content.split("\n")
    for line in lines:
        if line.startswith(key):
            value = line.split("=")[1].strip()
            try:
                # 尝试将值转换为合适的类型（例如整数、浮点数等）
                value = eval(value)
            except (NameError, SyntaxError):
                # 如果转换失败，保持原样
                pass
            break
    return value